<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="page-header">
	<h3 style="margin-top: auto">航电设备类别列表</h3>
</div>
<div class="row-fluid">
	<div>
		<c:choose>
			<c:when test="${!empty list}">
				<table class="table table-hover" style="width: 90%">
					<thead>
						<tr>
							<th width="20%">编号</th>
							<th width="40%">名称</th>
							<th width="40%">操作</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${list}" var="node" varStatus="s">
							<tr>
								<td><c:out value="${s.count}" /></td>
								<td><c:out value="${node.type}" /></td>
								<td><div class="btn-group">
										<button class="btn"
											onclick="window.location.href='<%=request.getContextPath()%>/domain_entity/equipment/category/${node.id}';"><i class="icon-search"></i>&nbsp;详细信息</button>
											<button class="btn"
											onclick="window.location.href='<%=request.getContextPath()%>/domain_entity/equipment/category/${node.id}/delete';"><i class="icon-remove"></i>&nbsp;删除</button>
									</div></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</c:when>
			<c:otherwise>
				<h3 style="margin-top: auto">数据库暂无相关航电设备类别信息</h3>
			</c:otherwise>
		</c:choose>
	</div>
</div>
<!--/row-->